package com.gxa.sideParking.admin.service;

import com.gxa.sideParking.admin.pojo.Car;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxa.sideParking.core.common.JsonResult;
import com.gxa.sideParking.core.exception.BusinessException;
import com.gxa.sideParking.core.util.R;
import org.springframework.stereotype.Repository;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gxa
 * @since 2022-10-05
 */
@Repository
public interface CarService extends IService<Car> {

    //查询所以
    JsonResult findAll(Integer currentPage, Integer pageSize) throws BusinessException;

    //按车牌号码查询
    JsonResult findCarNum(String carNum) throws BusinessException;

    //按所属用户查询
    JsonResult findName(String userNickName) throws BusinessException;

    //修改绑定状态
    JsonResult updateStatus(Integer carStatus) throws BusinessException;

    //修改启用状态
    int updateForbidden(Integer carForbidden) throws BusinessException;


}
